<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%@taglib tagdir="/WEB-INF/tags" prefix="util" %>

<jsp:include page="../fragments/header.jsp">
	<jsp:param name="title" value="Customer Details" />
</jsp:include>

<div class="form-horizontal">
	<div class="form-group">
		<label class="label"><b>Name</b></label>
		<label class="data">${customer.firstName} ${customer.lastName}</label>
	</div>
	<div class="form-group">
		<label class="label"><b>Home Address</b></label>
		<span class="data">${customer.address.buildingNumber} ${customer.address.street} ${customer.address.city} ${customer.address.state}, ${customer.address.country}. ${customer.address.zipCode}</span>
	</div>
	<div class="form-group">
		<label class="label"><b>E-Mail</b></label>
		<label class="data">${customer.email}</label>
	</div>
	<div class="form-group">
		<label class="label"><b>Birth Date</b></label>
		<label class="data"><fmt:formatDate value="${customer.birthDate.time}" type="date" dateStyle="long" /></label>
	</div>
	<div class="form-group">
		<label class="label"><b>Telephone</b></label>
		<label class="data">${customer.telephone.countryCode} - ${customer.telephone.number}</label>
	</div>
</div>

<br />
<br />

<form action="${pageContext.request.contextPath}/customer_info">
	<button class="btn btn-default">
		<b>Back to Customer Selection</b>
	</button>
</form>

<jsp:include page="../fragments/footer.jsp" />